package com.example.qxfw.nyqx.service.impl;

import com.example.qxfw.common.entity.qx.drought;
import com.example.qxfw.nyqx.mapper.DroughtMapper;
import com.example.qxfw.nyqx.service.DroughtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DroughtServiceImpl implements DroughtService {

    @Autowired
    private DroughtMapper droughtMapper;

    @Override
    public List<String> getStationId() {
        return droughtMapper.selectStationId();
    }

    @Override
    public List<drought> getList(String stationId, String time1, String time2) {
        return droughtMapper.selectList1(stationId,time1,time2);
    }
}
